use serde::{Serialize, Deserialize};

#[derive(Serialize,Deserialize,Debug,Clone,sqlx::FromRow)]
pub struct User{
    pub id:i32,
    pub nickname: String,
    pub email: String,
    pub phone_number:String,
    pub password:String,
    pub friends: Vec<i32>,
    pub status: String,
}

#[derive(Serialize,Deserialize,Debug,Clone,sqlx::FromRow)]
pub struct AttachedUser{
    pub id:i32,
    pub nickname: String,
    pub image: String
}

#[derive(Serialize,Deserialize,Debug,Clone)]
pub struct CreateUser {
    pub nickname: String,
    pub email: String,
    pub phone_number:String,
    pub password:String,
}